/*
* @author dumeng
*/
'use strict'
import request from '@/utils/request'

/**
 * 新增奖项
 * @param data
 * @returns {*}
 */
export function queryAwards(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/winningInfo/query',
    method: 'post',
    data
  })
}
/**
 * 奖项奖品列表
 * @param data
 * @returns {*}
 */
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/awardWinningWorks/queryPage',
    method: 'post',
    data
  })
}

export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/awardWinningWorks/get',
    method: 'post',
    data
  })
}

export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/awardWinningWorks/insert',
    method: 'post',
    data
  })
}

export function updateState(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/awardWinningWorks/updateStatus',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/awardWinningWorks/deleteById',
    method: 'post',
    data
  })
}
export function updateSort(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/awardWinningWorks/updateSort',
    method: 'post',
    data
  })
}

/**
 * 脱敏导出
 */
export function maskAPI(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/awardWinningWorks/awardWinningWorksMaskingExport',
    method: 'post',
    responseType: 'blob',
    data
  })
}
/**
 * 不脱敏导出
 */
export function noMaskAPI(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/awardWinningWorks/awardWinningWorksNoMaskingExport',
    method: 'post',
    responseType: 'blob',
    data
  })
}
